﻿<ss:SlView
    x:Class="SmartSpace.Silverlight.Shell.DefaultTheme.MainPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:ss="clr-namespace:SmartSpace.Silverlight;assembly=SmartSpace.Silverlight"
    xmlns:my="clr-namespace:SmartSpace.Silverlight.Shell.DefaultTheme"
    mc:Ignorable="d"
    d:DesignHeight="768" d:DesignWidth="1024" FontFamily="Microsoft YaHei,Arial,SimSun">
    <!--FontFamily="Fonts/msyh.zip#Microsoft YaHei"-->
    <ss:SlView.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="./styles/Button.xaml"/>
                <ResourceDictionary Source="./styles/TextBox.xaml"/>
                <ResourceDictionary Source="./styles/TabControl.xaml"/>
                <ResourceDictionary Source="./styles/ComBox.xaml"/>
                <ResourceDictionary Source="./DictionaryForm.xaml"/>
                <ResourceDictionary Source="./styles/DataGrid.xaml"/>
                <ResourceDictionary Source="./styles/Window.xaml"/>
                <ResourceDictionary Source="./styles/_RadioButton.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </ss:SlView.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <my:HeaderPanel x:Name="m_headerPanel" Grid.Row="0"/>
        <ss:SlBackground x:Name="_ctlBackground" Grid.Row="1">
            <ss:SlBackground.Background>
                <ImageBrush ImageSource="./Resources/bg.jpg" Stretch="UniformToFill" />
                <!--<SolidColorBrush Color="White"/>-->
            </ss:SlBackground.Background>
        </ss:SlBackground>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Column="0">
                <RadioButton Name="_ctlBtnShowNavigation" Click="Button_Click" IsChecked="True" GroupName="mainpanel" Style="{StaticResource MainPanelRadioButton}" Margin="5,5,0,0">
                    <StackPanel HorizontalAlignment="Center" Margin="5">
                        <Image Source="./Resources/myapp.png" Width="48" Height="48"/>
                        <TextBlock Foreground="White" Text="主页" Visibility="Collapsed" HorizontalAlignment="Center" Margin="0,0,0,0"/>
                    </StackPanel>
                </RadioButton>
                <RadioButton Name="_ctlBtnShowWorkArea" GroupName="mainpanel" Visibility="Collapsed" Click="ButtonWorkArea_Click" Margin="5,0,0,0" Style="{StaticResource MainPanelRadioButton}">
                    <StackPanel HorizontalAlignment="Center" Margin="5">
                        <Image Source="./Resources/desktop.png" Width="48" Height="48"/>
                        <TextBlock Foreground="White" Text="工作面板" HorizontalAlignment="Center" Margin="0,0,0,0"/>
                    </StackPanel>
                </RadioButton>
            </StackPanel>
            <ss:SlViewContainer x:Name="_ctlViewContainer" Grid.Column="1">
            </ss:SlViewContainer>
        </Grid>
        <my:FooterPanel x:Name="m_footerPanel"  Grid.Row="2" Margin="0"/>
    </Grid>
</ss:SlView>
